using UnityEngine;
using UnityEngine.Rendering;

public class transDoorOpen : MonoBehaviour
{
    Transform objTransform = null;

    public GameObject Obj;

    public void Start()
    {
        objTransform = Obj.GetComponent<Collider>().transform;
    }

    private void Update() {
        if (objTransform.localScale.y < 3.3f) {
            objTransform.localScale =  new Vector3(2.4f, objTransform.localScale.y + .03f, 0.22f);
        }
    }

}